import {BaseEntity, Column, Entity, Index, JoinColumn, JoinTable, ManyToMany, ManyToOne, OneToMany, OneToOne, PrimaryColumn, PrimaryGeneratedColumn, RelationId} from 'typeorm';

@Entity('fa_cms_model', {schema: 'fastadmin' } )
export class fa_cms_model {

    @PrimaryGeneratedColumn({
        type: 'smallint',
        name: 'id',
        })
    id: number;

    @Column('char', {
        nullable: false,
        length: 30,
        name: 'name',
        })
    name: string;

    @Column('char', {
        nullable: false,
        length: 20,
        name: 'table',
        })
    table: string;

    @Column('text', {
        nullable: true,
        name: 'fields',
        })
    fields: string | null;

    @Column('varchar', {
        nullable: false,
        length: 30,
        name: 'channeltpl',
        })
    channeltpl: string;

    @Column('varchar', {
        nullable: false,
        length: 30,
        name: 'listtpl',
        })
    listtpl: string;

    @Column('varchar', {
        nullable: false,
        length: 30,
        name: 'showtpl',
        })
    showtpl: string;

    @Column('int', {
        nullable: true,
        name: 'createtime',
        })
    createtime: number | null;

    @Column('int', {
        nullable: true,
        name: 'updatetime',
        })
    updatetime: number | null;

    @Column('text', {
        nullable: true,
        name: 'setting',
        })
    setting: string | null;

}
